package com.hao.product.app.model.dto.category;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author haoge
 * @version 1.0
 * @date 2023/5/23 16:10
 */
@Data
public class UpdateCategoryRequest implements Serializable {
    private static final long serialVersionUID = 6296156014396940582L;
    @NotNull
    @Min(value = 1,message = "请求参数错误")
    private Long id;

    @NotNull(message = "参数不能为空")
    @NotBlank(message = "参数不能为空")
    private String name;


}
